/* AI诊断对话框样式 */
.ai-diagnosis-dialog {
    background: rgba(15, 28, 60, 0.95);
    border-radius: 12px;
    border: 1px solid #3b82f6;
    color: #e0e6f0;
}

.ai-diagnosis-dialog .el-dialog__header {
    background: rgba(30, 58, 138, 0.5);
    border-bottom: 1px solid #2a3e70;
    margin: 0;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
}

.ai-diagnosis-dialog .el-dialog__title {
    color: #93c5fd;
    font-weight: bold;
}

.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(10, 20, 40, 0.6);
    border-radius: 8px;
    margin-bottom: 15px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
}

.user-message {
    background: rgba(30, 58, 138, 0.5);
    border: 1px solid #3b82f6;
    margin-left: auto;
}

.ai-message {
    background: rgba(20, 40, 80, 0.7);
    border: 1px solid #4b5563;
    margin-right: auto;
}

.message-header {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-header {
    color: #60a5fa;
}

.ai-header {
    color: #34d399;
}

.message-content {
    line-height: 1.5;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input textarea {
    flex: 1;
    background: rgba(10, 20, 40, 0.7);
    border: 1px solid #2a3e70;
    border-radius: 8px;
    padding: 12px;
    color: #e0e6f0;
    resize: none;
    height: 80px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.send-button {
    align-self: flex-end;
    height: 80px;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #93c5fd;
    font-size: 14px;
    margin-top: 5px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

.diagnosis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-history {
    font-size: 13px;
    color: #93c5fd;
    cursor: pointer;
    transition: color 0.3s;
}

.clear-history:hover {
    color: #60a5fa;
}
